Yesterday because the server is due to migrate the site to another server, the use of the LNMP architecture, the site after the completion of the relocation of various parts of the problem of the egg pain: A lot of Web page open prompt "No input
Apache support. htaccess and No input file specified solutionLocate the httpd.conf file in your Apache installation folder confLoadModule Rewrite_module modules/mod_rewrite.so If there is a comment symbol # above, please remove it.Search the options
Locate the httpd.conf file in your Apache installation folder confSearch LoadModule Rewrite_module modules/mod_rewrite.so If there is a comment symbol # above, please remove it.Search the options followsymlinks and then Modify the allowoverride None
Today in your own local development environment suddenly appeared no input file specified error, repeatedly check the return to their own configuration files and configuration path and permissions are no problem. After repeated investigation finally
[1]
I did not expect to encounter no input file specified because the project uses URL route, it may be a rewrite problem.
Record the solution.
1. Check whether doc_root sets this value.
2. Check the. HTA file. Many frameworks use index. php as
Question: Enter Homestead.app, page tip: No input file specified.
System environment:
Linux系统
. YAML configuration file:
folders: - map: ~/Code to: /home/vagrant/Codesites: - map: homestead.app to: /home/vagrant/Code # to:
Find the httpd.conf file in your Apache installation folder confSearch LoadModule Rewrite_module modules/mod_rewrite.so If there is an annotation symbol on the front, remove it.Search for the options followsymlinks and then modify the allowoverride
Principle:Any request for a. php file is simply given to php-cgi, but the PHP file is not verified to exist.PHP file does not exist, there is no way to return a normal 404 error, it returns a 404, and with a sentence "No input file specified"In
A IIS noinput file specified
Method One: Change the Doc_root line in the php.ini, open the INI file comment out the row, and then restart IIS
Method Two:
Please modify the php.ini
Found it
; Cgi.force_redirect = 1
Remove the front semicolon
(i) IIS noinput file specifiedMethod One: Change php.ini in the Doc_root line, open the INI file comment out this line, and then restart IISMethod Two:Please modify php.iniFound it; Cgi.force_redirect = 1Remove the front semicolon and change the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.